sett in this code in page.tpl.php in your themes:
//## display network statistics.
$res = sql_query("SELECT count() as num from ".tb()."accounts ");
$row = sql_fetch_array($res);
$stats['members'] = $row['num'];
$res = sql_query("SELECT count() as num from ".tb()."friends ");
$row = sql_fetch_array($res);
$stats['friendships'] = $row['num']/2;
$res = sql_query("SELECT count() as num from ".tb()."comments ");
$row = sql_fetch_array($res);
$stats['comments'] = $row['num'];
$res = sql_query("SELECT count() as num from ".tb()."streams ");
$row = sql_fetch_array($res);
$stats['activities'] = $row['num'];
$theme_default_cache_left .= '
<div>
<strong>'.t('Network Statistics').':</strong><br />
<strong>'.$stats['activities'].'</strong> '.t('Activities').'<br />
<strong>'.$stats['members'].'</strong> '.t('Members').'<br />
<strong>'.$stats['friendships'].'</strong> '.t('Friendships').'<br />
<strong>'.$stats['comments'].'</strong> '.t('Comments').'
</div>
';
echo $theme_default_cache_left;
}
echo get_gvar('theme_block_lsidebar');
After this:
echo '</td>';
if (!$is_cover) {
echo '<td valign="top"><div style="width:170px;float:right;">
'.get_gvar('theme_block_adsbar').'</div></td>';
SETT CODE----
echo '
</tr></table>
</td>';
?>
</table>
</div><!-- end jcow_application -->
</div><!-- end jcow_application_box --> |